
<%@page import="java.util.List"%><%@ include file="../aRR/include.jsp"%> 
<%@taglib prefix="spring" uri="/WEB-INF/spring.tld" %>

<html>
	<head>
		<title>
		  <spring:message code="page.title"/>
		</title>
		<style type="text/css">
		  <%@include file="/css/assetReg.css" %>
		</style>
		<script language="javascript" type="text/javascript">
		  <%@include file="/js/assetReg.js" %>
		</script>
    </head>
	<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onload="">

		<%
			Object groupNamesList = request.getAttribute("groupNames");
			if(groupNamesList==null){%>
			<div id="error1">
			<h2>
				<spring:message code="ssoUID.notFound" />
			</h2>
		</div>
			<%}else{
			List<String> groups = (List<String>) groupNamesList;
			
			if (groups.contains("IndividualUpdater")) {
		%>
		<%@include file="../aRR/individualAssetRegister.jsp"%>
		<%
			}
			if (groups.contains("BatchUpdater")) {
		%>
		<div align="center">

			<a href="upload.htm" style="text-decoration: none;"><spring:message
					code="batchProcess.banner" /> </a>

		</div>
		<%
			}
			if (groups.contains("AssetRegistrar")) {
		%>
		<div align="center">
			<a href="newAsset.htm" style="text-decoration: none;"><spring:message
					code="newAssetReg.banner" /> </a>
		</div>
		<%
			}
			if (groups.size() == 0) {
		%>
		<div id="error1">
			<h2>
				<spring:message code="unauthorized.entry" />
			</h2>
		</div>
		<%
			}
			}
		%>

	</body>
</html>